FROM openjdk:8u332-jre
ENV ZLXX_BIN_FOLDER /opt/zl-service-1.0/bin
WORKDIR ZLXX_BIN_FOLDER
ADD ./target/*.tar.gz /opt/
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/zl-service-1.0/config/application.yml","-jar","/opt/zl-service-1.0/bin/zl-service-1.0.jar"]

#WORKDIR /home
#COPY ./target/*.jar /home
#ENTRYPOINT java -jar *.jar


